package com.xm.zcf.action.Base;

import org.hibernate.SessionFactory;
import org.hibernate.classic.Session;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/3/13.
 */
public class SessionBase {
    @Resource
    private SessionFactory sessionFactory;
    protected Session getSession(){
        return sessionFactory.getCurrentSession();
    }
}
